home *** CD-ROM | disk | FTP | other *** search
- function checkTheCount()
- {
- if(current == 8)
- {
- theCount.scaleTo(200,1,"easeInOutBack");
- }
- else
- {
- theCount.scaleTo(100,0.5,"easeOutSine");
- }
- }
- function select()
- {
- i = 0;
- while(i <= muppet.length - 1)
- {
- if(currentMuppet == eval(muppet[i]))
- {
- currentMuppet.art.gotoAndStop(1);
- currentMuppet.onEnterFrame = function()
- {
- this._y += (600 - this._y) / 3;
- if(this._y < 602)
- {
- this.gotoAndPlay(2);
- delete this.onEnterFrame;
- }
- };
- }
- else if(eval(muppet[i]) != _level0.theCount)
- {
- eval(muppet[i]).onEnterFrame = function()
- {
- this._y += (850 - this._y) / 3;
- if(this._y > 849)
- {
- this.gotoAndStop(1);
- delete this.onEnterFrame;
- }
- };
- }
- else
- {
- theCount.art.gotoAndPlay(2);
- theCount.gotoAndStop(1);
- }
- i++;
- }
- }
- function runBrowse()
- {
- currentMuppet = noMuppet;
- select();
- i = 0;
- while(i <= muppet.length - 1)
- {
- eval(muppet[i]).onEnterFrame = function()
- {
- this._y += (850 - this._y) / 3;
- if(this._y > 849.5)
- {
- delete this.onEnterFrame;
- }
- };
- i++;
- }
- i = 0;
- while(i <= leftWordArray.length - 1)
- {
- var leftWords = leftWordCage["lw" + i];
- var rightWords = rightWordCage["rw" + i];
- leftWords.enabled = false;
- rightWords.enabled = false;
- leftWords.art.tween("_x",0,0.5,"easeInBack");
- rightWords.art.tween("_x",0,0.5,"easeInBack");
- i++;
- }
- topBubble.tween("_x",80,1,"easeInOutBack",0.5);
- browseBtn.scaleTo(75,0.5,"easeInBack");
- browseBtn.tween(["_y","_x"],[134,33],1,"easeInBack");
- downloadBtn.scaleTo(75,0.5,"easeInBack");
- downloadBtn.tween(["_y","_x"],[262,31],1,"easeInBack");
- cover0.scaleTo(0,0.5,"easeInBack");
- cover1.scaleTo(0,0.5,"easeInBack");
- cover0.tween(["_y","_x"],[187,69],0,"linear",0.5);
- cover1.tween(["_y","_x"],[299,136],0,"linear",0.5);
- cover0.scaleTo(70,0.5,"easeOutBack",1);
- cover1.scaleTo(70,0.5,"easeOutBack",1);
- grab.alphaTo(100,0.5,"linear",2);
- }
- stop();
- theCount.tween("_y",600,0.5,"easeInSine");
- i = 0;
- while(i <= 1)
- {
- tg = 0.2 * i;
- this["cover" + i].scaleTo(100,0.5,"easeOutBack",tg);
- i++;
- }
- topBubble.masker.scaleTo(100,0.4,ease);
- browseBtn.masker.scaleTo(150,0.4,ease,0.4);
- downloadBtn.masker.scaleTo(150,0.4,ease,0.8);
- angleX = 0;
- angleY = 0;
- range = 10;
- xspeed = 0.07;
- yspeed = 0.11;
- browseBtn.onEnterFrame = function()
- {
- browseBtn.art._x = -4 + Math.sin(angleX) * range;
- browseBtn.art._y = -3 + Math.sin(angleY) * range;
- downloadBtn.art._x = 0 + Math.sin(angleX) * (- range);
- downloadBtn.art._y = 0 + Math.sin(angleY) * (- range);
- angleX += xspeed;
- angleY += yspeed;
- };
- browseBtn.enabled = true;
- browseBtn.onRelease = browseBtn.onReleaseOutside = function()
- {
- topBubble.enabled = true;
- getUrl("GRAB/html/index.html", "_self");
- };
- downloadBtn.onRollOver = function()
- {
- this.art.gotoAndStop(2);
- };
- downloadBtn.onRollOut = function()
- {
- this.art.gotoAndStop(1);
- };
- downloadBtn.onRelease = downloadBtn.onReleaseOutside = function()
- {
- this.art.gotoAndStop(1);
- this.enabled = false;
- runBrowse();
- };
- topBubble.enabled = false;
- topBubble.onRollOver = function()
- {
- this.gotoAndStop(2);
- };
- topBubble.onRollOut = function()
- {
- this.gotoAndStop(1);
- };
- topBubble.onRelease = topBubble.onReleaseOutside = function()
- {
- gotoAndStop("reset");
- play();
- this.enabled = false;
- };
-